package com.team.service.impl;

import com.team.entity.DataDictionary;
import com.team.entity.DataDictionaryExample;
import com.team.mapper.DataDictionaryMapper;
import com.team.service.DataDictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DataDictionaryImpl implements DataDictionaryService {
    @Autowired
    private DataDictionaryMapper dataDictionaryMapper;
    @Override
    public List<DataDictionary> getDictionary(String typename) {

        return dataDictionaryMapper.getDictionary(typename);

     /*   DataDictionaryExample dataDictionaryExample = new DataDictionaryExample();

        DataDictionaryExample.Criteria criteria = dataDictionaryExample.createCriteria();

        if (typename != null)
            criteria.andTypenameEqualTo(typename);*/
    }

}
